package project2;

import java.util.Scanner;

public class Main3_26 {

	public static void main(String[] args) {
		/*
		 * 输入一个整数 
		 * 判断能否被5和6整除 
		 * 能否被5或6整除 
		 * 能否被5或6整除但不能同时被整除
		 */
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个整数");
		int num = sc.nextInt();
		System.out.println((num % 5 == 0) && (num % 6 == 0));//判断能否被5和6整除
		System.out.println((num % 5 == 0) || (num % 6 == 0));//能否被5或6整除
		System.out.println((num % 5 == 0) ^ (num % 6 == 0));//能否被5或6整除但不能同时被整除

	}

}
